<?php defined('BASEPATH') OR exit('No direct script access allowed');?>

<!-- +++++ Tag List +++++ -->

<div class="pink">
    <div class="container">
        <div class="row">

            <!-- +++++ 操作 +++++ -->
            <div class="col-lg-12">
                <table width="100%">
                    <tr>
                        <td>
                            <a class="btn btn-danger" href="/admin/type/add">添加分类</a>
                            <a class="btn btn-danger" href="">删除选中项</a>
                        </td>
                        <td align="right">
                            <form class="search-form">
                                <input class="search-input" type="text" placeholder="请输入您要搜索的内容...">
                                <button class="search-button" type="submit"></button>
                            </form>
                        </td>
                    </tr>
                </table>
                <br><br>
            </div>

            <!-- +++++ 显示记录 +++++ -->
            <div class="col-lg-12">
                <div class="my-well">
                    <div class="table-responsive">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th>id</th>
                                <th>名字</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>

                            <!-- +++++ 循环遍历list +++++ -->
                            <?php foreach ($list as $v): ?>
                            <tr>
                                <td>
                                    <div class="checkbox">
                                        <label><input type="checkbox"><?=$v['id']?></label>
                                    </div>
                                </td>
                                <td><?=$v['name']?></td>
                                <td>
                                    <a class="btn btn-danger" href="/admin/type/edit/<?=$v['id']?>">编辑</a>
                                    &nbsp;<a class="btn btn-danger" href="/admin/type/deltype/<?=$v['id']?>">删除</a>
                                </td>
                            </tr>
                            <?php endforeach; ?>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div><!-- /row -->
    </div> <!-- /container -->
</div><!-- /white -->